package com.tuanzi.loan.business.entity.wallet;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;

@Data
@Entity
@Table(name = "loan_user_wallet_flow")
public class LoanUserWalletFlow implements Serializable{
	
	private static final long serialVersionUID = -8504467220998161654L;
	
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	@Column(name = "user_id")
	private Long userId;
	
	@Column(name = "amount")
	private Float amount;
	
	@Column(name = "balance")
	private Float balance;
	
	@Column(name = "remark")
	private String remark;
	
	@Column(name = "withdrawAccount")
	private String withdrawAccount;
	
	@Column(name = "share_record_id")
	private Long shareRecordId;
	
	@Column(name = "withdraw_record_id")
	private Long withdrawRecordId;
	
    @Column(name = "create_time")
    protected Date createTime;

    @Column(name = "creator", length = 50)
    protected String creator;

}
